package User;

import PO.UserPO;
import VO.UserVO;

public class User {
	long id;
	String name;
	String role;
	
	//constructor
	public User(){}

	public User(long id, String name,String role) {
		super();
		this.id = id;
		this.name = name;
		this.role=role;
	}

	public User(UserVO vo){
		id=vo.getId();
		name=vo.getName();
	}	
	public User(UserPO po){
		id=po.getId();
		name=po.getName();	
	}
	
	public long getId() {
		return id;
	}
	
	public String getName() {
		return name;
	}

	public String getRole() {
		return role;
	}
	
	public void setInfo(UserVO vo){
		id=vo.getId();
		name=vo.getName();
	}
}
